import {defineStore} from 'pinia'
import {ref} from 'vue'

export const useUsername = defineStore('username', () => {
    const usernameInfo = ref({
        user: {} && JSON.parse(localStorage.getItem('userData')),
        token: {} && localStorage.getItem('token')
    })
    const imgUrl = ref('/src/assets/bdca20f4113c926a80de957d01e7a550fd5fb19f.gif')
    return {usernameInfo, imgUrl}
})
